package com.cssy.yd.logic.service;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import org.springframework.transaction.annotation.Transactional;

import com.cssy.base.service.IBaseService;
import com.cssy.yd.logic.entity.LogicFkReturnDO;
import com.cssy.yd.logic.entity.LogicFkReturnItemDO;
import com.plat.exception.SyBaseException;
import com.plat.helper.SearchConditions;
import com.plat.helper.SearchResult;
import com.yuendong.sy.exception.SyCodeException;

public interface ILogicFkReturnService extends IBaseService<LogicFkReturnDO> {

	public SearchResult findItemListByExample(SearchConditions scs) throws SyBaseException;
	
	public Integer deleteItem(String id) throws SyBaseException;
	
	public Integer updateItem(LogicFkReturnItemDO t) throws SyBaseException;
	
	public LogicFkReturnItemDO saveItem(LogicFkReturnItemDO t) throws SyBaseException;
	
	public LogicFkReturnItemDO findItemListById(String id) throws SyBaseException;
	
	public List<LogicFkReturnItemDO> findItemListBytkid(String tkid) throws SyBaseException;
	
	public Double findLastedDOByExample(SearchConditions scs) throws SyBaseException;
	
	@Transactional
	public void fkReturnSave(HttpServletRequest request,LogicFkReturnDO curAP)throws SyBaseException,SyCodeException;
	@Transactional
	public void fkReturnCommit(HttpServletRequest request,LogicFkReturnDO curAP)throws SyBaseException,SyCodeException;
}
